Skip to content

Python >= 3.8 builds#21

Merged
zsedem merged 3 commits intozsedem:mainfrom
sheepforce:python3-builds
Feb 26, 2024
Merged

Python >= 3.8 builds#21
zsedem merged 3 commits intozsedem:mainfrom
sheepforce:python3-builds

Conversation

@sheepforce
Copy link

I've updated the cabal file to use a Configure build type to generally work with Python versions >= 3.8. While it hasn't been updated for some time it still seems to work. This change would also allow me to unbreak the Nix packages in NixOS upstream, if you could publish a new hackage version.

@sheepforce
Copy link
Author

Should resolve #18 and #20

@zsedem
Copy link
Owner

zsedem commented Feb 23, 2024

Hi,

Thanks for taking the time for contributing. I have very limited time, so you should expect 3-4 days answer latency from me.
Thanks for the flake config, I am a NixOS user as well, so it made the setup easy 😛 .

I uploaded a package candidate, not sure if you can test it with nixpkgs though, I am very out-dated on the Haskell tooling:

https://hackage.haskell.org/package/cpython-3.8.0/candidate

Tests are running fine.

So if the candidate works, I will just merge this and upload a new final version.

@sheepforce
Copy link
Author

Ah perfect, thank you so much! I've tested the Nix build with the package candidate directly (an overlay with something like

cpython = hfinal.callCabal2nix "cpython" (prev.fetchzip {
  url = "https://hackage.haskell.org/package/cpython-3.8.0/candidate/cpython-3.8.0.tar.gz";
  hash = "sha256-LMur9LzlO4UYGIVvOzW1dlNfLVaCBepLDakcZSP6dE4=";
  }) {};

)
and that works nicely. 👍

I've just realised that it probably works with Nix only, though, as the configure script is generated by autoreconf in Nix on demand, but not committed. However, plain Cabal will require the configure script as part of the repo, so I will add another commit with the configure script. Not perfect as this is simple generated code, but it is what it is, I guess 😄

@zsedem zsedem merged commit f9cf151 into zsedem:main Feb 26, 2024
@zsedem
Copy link
Owner

zsedem commented Feb 26, 2024

Thanks again!

new version is published
https://hackage.haskell.org/package/cpython-3.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants